package com.zengqingfa.juc.n4;

/**
 * @author zengqingfa
 * @className UserServiceImpl
 * @description
 * @create 2021/6/10 23:34
 */
public class UserServiceImpl6 implements UserService {

    public void update(String s) throws Exception {
        //局部变量，不存在线程安全
        UserDao userDao = new UserDaoImpl();
        userDao.update(s);
    }
}